<!doctype html>
<html>

<head>
	<meta http-equiv="Content-Type" Content="text/html; charset=utf-8"/>

	<link rel="stylesheet" type="text/css" href="../css/header.css">
	<link rel="stylesheet" type="text/css" href="../css/footer.css">
	<link rel="stylesheet" type="text/css" href="../css/QnA.css">
	<link rel="stylesheet" href="../res/bootstrap/css/bootstrap.min.css">
	<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.js"></script>
	<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.4/jquery-ui.js"></script>
	<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js"></script>
	<script src="../myUtil.js"></script>
	<script src="../js/QnA.js"></script>
<style>
div.pagination li { cursor: pointer; }
</style>

</head>
<body ng-app="myModule">
<div class="container" ng-controller="MyController">
<!-- header-->
<div class="header span12">
</div>
<!--//header-->

<!--notice_content-->
	<h1>QnA 게시판</h1> 각종 문의사항을 게시할 수 잇는 게시판입니다.
	<br/><br/>

	
	<table class="table table-condensed">
		<thead>
			<tr><td>번호</td><td>제목</td><td>작성자</td><td>날짜</td><td>조회수</td></tr>
		</thead>
		<tbody>
			<tr ng-repeat="item in noticeitems" style="background-color:#ddd;" ng-click="go(item.content_id)">
				<td style="color:red;">공지</td>
				<td><span class='subject'> </span>{{item.title}}</td>
				<td>{{item.name}}</td>
				<td>{{item.shortdate}}</td>
				<td>{{item.hit}} </td>
			</tr>
			
			<tr ng-repeat="item in currentPageitems" ng-click="go(item.content_id)">
				<td>{{item.content_id}}</td>
				<td><span class='subject'> </span>{{item.title}}</td>
				<td>{{item.name}}</td>
				<td>{{item.shortdate}}</td>
				<td>{{item.hit}} </td>
			</tr>
			
		</tbody>
	</table>
		<a class=" btn btn-primary write_btn" href="QnA_board_edit.html">글쓰기</a>
		
	<div class="pagination pagination-small">
    <ul>
        <li ng-if="pagePrev"><a ng-click="gotoPage(pagePrev)">&lt;</a></li>
        <li ng-repeat="p in pages">
            <span ng-if="p != currentPage" style="color: blue;" ng-click="gotoPage(p)">{{ p }}</span>
            <span ng-if="p == currentPage" style="font-weight: bold; color: black;">{{ p }}</span>
        </li>
        <li ng-if="pageNext"><a ng-click="gotoPage(pageNext)">&gt;</a></li>
    </ul>
  </div>
  
		<div id="sear">
			<div class="input-prepend">
				<div class="btn-group">
				<select class="span2" name="search" ng-model="title" ng-options="option.option for option in options ">
				
				</select>
				</div>
			</div>
			
			<div class="input-append">
					<input type="hidden" name="subje">
					<input type="text" id="search" name="title" ng-model="search" class="span3 search-query"/>
					<button type="submit" class="btn" ng-click="searchTitle()">검색</button>
			</div>
		</div>

<!--//notice_content-->

<!--footer-->
	
	<div class="footer span12"></div>
<!--//footer-->
</div>
</body>
</html>